package com.expense.common.dao.auth;

import com.expense.common.config.BaseDao;
import com.expense.common.model.auth.AdminMenuRole;
import org.beetl.sql.core.annotatoin.SqlResource;

import java.util.List;

@SqlResource("auth.adminMenuRole")
public interface AdminMenuRoleDao extends BaseDao<AdminMenuRole> {

    List<Long> findMenuIdByRoleIdAndIsLeafAndUndeleted(Long roleId);

    List<AdminMenuRole> findByRoleIdAndUndeleted(Long roleId);

    Integer deleteByRoleId(Long roleId, Long userId);
}
